package com.ma.service.impl;


import com.ma.entity.SysUserRole;
import com.ma.mapper.SysUserRoleMapper;
import com.ma.service.SysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>

 */
@Service
public class SysUserRoleServiceImpl implements SysUserRoleService {
    @Autowired
    SysUserRoleMapper sysUserRoleMapper;
    @Override
    public void deleteUserRoleByRoleId(Long id) {
        sysUserRoleMapper.deleteUserRoleByRoleId(id);
    }

    @Override
    public void deleteUserByUserId(Long id) {
        sysUserRoleMapper.deleteUserByUserId(id);
    }

    @Override
    public void save(SysUserRole sysUserRole) {
        sysUserRoleMapper.save(sysUserRole);
    }


}
